package com.xxxx.mail.config;


import com.xxxx.server.constant.MailConstants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:王亚栋
 * @Date: 2023/6/20 下午10:07
 * @Version:1.0
 */
@Configuration
public class MailConfig {

    @Bean
    public Queue queue(){

        return new Queue(MailConstants.MAIL_QUEUE_NAME);
    }

}
